<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>仓库KPI监控管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#btnImport").click(function(){
				$.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true}, 
					bottomText:"导入文件不能超过5M，仅允许导入“xls”或“xlsx”格式文件！"});
			});
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>

    <div id="importBox" class="hide">
		<form id="importForm" action="${ctx}/warehouse/warehouseKpiMonitoring/import" method="post" enctype="multipart/form-data"
			class="form-search" style="padding-left:20px;text-align:center;" onsubmit="loading('正在导入，请稍等...');"><br/>
			<input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/>
			<input id="btnImportSubmit" class="btn btn-primary" type="submit" value="   导    入   "/>
			<!--   <a href="${ctx}/warehouse/warehouseKpiMonitoring/import/template">下载模板</a>-->
			
		</form>
	</div>
	
	<ul class="nav nav-tabs">
		<li class="active">仓库KPI监控列表</li>
		<!--  
		<shiro:hasPermission name="warehouse:warehouseKpiMonitoring:edit">
		<li><a href="${ctx}/warehouse/warehouseKpiMonitoring/form">仓库KPI监控添加</a></li></shiro:hasPermission>
		-->
	</ul>
	<form:form id="searchForm" modelAttribute="warehouseKpiMonitoring" action="${ctx}/warehouse/warehouseKpiMonitoring/list" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<ul class="ul-form">
			<li><label>仓库：</label>
				<form:input path="warehouse" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label>员工：</label>
				<form:input path="employee" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li>
				<label>日期范围：&nbsp;</label><input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
					value="<fmt:formatDate value="${warehouseKpiMonitoring.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
				&nbsp;--&nbsp;<input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
					value="<fmt:formatDate value="${warehouseKpiMonitoring.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>&nbsp;&nbsp;
			</li>
			
			<li class="btns">
				<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
				<input id="btnImport" class="btn btn-primary" type="button" value="导入"/>
			</li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>仓库</th>
				<th>日期</th>
				<th>员工</th>
				<th>标准工时</th>
				<th>增值工时</th>
				<th>异常工时</th>
				<th>支持工时</th>
				<th>加班工时</th>
				<th>上班工时</th>
				<th>空闲工时</th>
				<th>状态</th>
				<th>修改时间</th>
				<th>备注</th>
				<!--  
				<shiro:hasPermission name="warehouse:warehouseKpiMonitoring:edit"><th>操作</th></shiro:hasPermission>
				-->
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="warehouseKpiMonitoring">
			<tr>
				<td>
					${warehouseKpiMonitoring.warehouse}
				</td>
				<td>
					<fmt:formatDate value="${warehouseKpiMonitoring.date}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					${warehouseKpiMonitoring.employee}
				</td>
				<td>
					${warehouseKpiMonitoring.standardWorkingHours}
				</td>
				<td>
					${warehouseKpiMonitoring.valueAddedHours}
				</td>
				<td>
					${warehouseKpiMonitoring.abnormalWorkingHours}
				</td>
				<td>
					${warehouseKpiMonitoring.supportWorkingHours}
				</td>
				<td>
					${warehouseKpiMonitoring.overtimeHours}
				</td>
				<td>
					${warehouseKpiMonitoring.workingHours}
				</td>
				<td>
					${warehouseKpiMonitoring.idleHours}
				</td>
				<td>
					${warehouseKpiMonitoring.status}
				</td>
				<td>
					<fmt:formatDate value="${warehouseKpiMonitoring.updateDate}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					${warehouseKpiMonitoring.remarks}
				</td>
				<!-- 
				<shiro:hasPermission name="warehouse:warehouseKpiMonitoring:edit"><td>
    				<a href="${ctx}/warehouse/warehouseKpiMonitoring/form?id=${warehouseKpiMonitoring.id}">修改</a>
					<a href="${ctx}/warehouse/warehouseKpiMonitoring/delete?id=${warehouseKpiMonitoring.id}" onclick="return confirmx('确认要删除该仓库KPI监控吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
				 -->
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>